package top.cwk.dubbo.web.router;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName FieldTypeConstants
 * @Description 字段类型常量
 * @Author 维康
 * @Date 2018/7/28 16:04
 * @Version 1.0
 **/
public class FieldTypeConstants {

    static public final String BASE_PACKAGE = "java.lang.";
    static public final String TYPE_STRING = "String";
    static public final String TYPE_INTEGER = "Integer";
    static public final String TYPE_INT = "int";
    static public final String TYPE_LONG = "Long";
    static public final String TYPE_DOUBLE = "Double";
    static public final String TYPE_FLOAT = "Float";
    static public final String TYPE_DATE = "Date";
    static public final String TYPE_BOOLEAN = "Boolean";

    static public final Map<String,String> FIELD_TYPE_MAP = new HashMap<String, String>();

    static {
        FIELD_TYPE_MAP.put(TYPE_STRING,BASE_PACKAGE+TYPE_STRING);
        FIELD_TYPE_MAP.put(TYPE_INTEGER,BASE_PACKAGE+TYPE_INTEGER);
        FIELD_TYPE_MAP.put(TYPE_INT,BASE_PACKAGE+TYPE_INTEGER);
        FIELD_TYPE_MAP.put(TYPE_LONG,BASE_PACKAGE+TYPE_LONG);
        FIELD_TYPE_MAP.put(TYPE_DOUBLE,BASE_PACKAGE+TYPE_DOUBLE);
        FIELD_TYPE_MAP.put(TYPE_FLOAT,BASE_PACKAGE+TYPE_FLOAT);
        FIELD_TYPE_MAP.put(TYPE_BOOLEAN,TYPE_BOOLEAN+TYPE_FLOAT);
        FIELD_TYPE_MAP.put(TYPE_DATE,"java.util."+TYPE_FLOAT);
    }
}
